// 引入
import { useSelector } from "react-redux";

export default function World() {
  const msg = useSelector((state) => state.msg);
  const count = useSelector((state) => state.count);

  return (
    <div>
      <h2>World</h2>
      <p>msg: {msg}</p>
      <p>count: {count}</p>
    </div>
  );
}
